<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script>

        var num=1;
        var shuzi=1;
        if (num++>1){
            shuzi++;
            alert('优秀')
        }else if(num++>1){
           alert(shuzi)
            alert(num)      //3
        }else {
            alert("结束")
        }


    </script>
</head>
<body>

</body>
</html>